"use strict";
/* Controllers */
app.controller("apiListController", ['$scope', '$location', '$rootScope', '$routeParams', 'apiListService', function ($scope, $location, $rootScope, $routeParams, apiListService) {

    $scope.initializeController = function () {
        var $resultTable = $('#api_list_table');
        $resultTable.bootstrapTable({
             pageList: [30, 50, 100, 300, 500, 1000], pageSize: 30
        });
        $('#api_list_table').bootstrapTable('load', rbacDefined.apis);
    };

    $scope.initializeController();

}]);


/* Services */
app.service('apiListService', ['ajaxService', function (ajaxService) {

}]);
function nameFmt(value, row, index) {
    return "<a href='#/hllopen/rbac/api_test/" + row.name + "'>"+row.name+"</a>";
}
